//
//  SRBookPageCollectionViewCell.h
//  StoryShow
//
//  Created by CyonLeuMBP on 2017/4/17.
//  Copyright © 2017年 qudiandu.cn. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SRBookPageModel.h"
#import "SRBookPageTrackItemModel.h"

extern NSString *const kSRBookPageCollectionViewCell;

@interface SRBookPageCollectionViewCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *pageImageView;


@property (assign, nonatomic) BOOL clickAreaShow;//点击区域显示边框
@property (copy, nonatomic) void(^playAudioTrackBlock)(SRBookPageTrackItemModel *trackModel, NSInteger trackIndex);
@property (copy, nonatomic) void(^allTracksDidFinishPlayBlock)(void);//所有的track都已经播放结束，应该播放下一页


- (void)updateCellInfo:(SRBookPageModel *)pageModel bookID:(NSString *)bookID;
- (void)playNextTrackModel;
- (void)playTrackModelWithIndex:(NSInteger)trackIndex;

@end
